package com.xiaotu.service.mysql;

import com.xiaotu.dao.mysql.MysqlTvMapper;
import com.xiaotu.entity.TvDeleteRecordModel;
import com.xiaotu.entity.TvModel;
import com.xiaotu.entity.TvProcessDataModel;
import com.xiaotu.entity.WorksAwardModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhangxiao
 * @create 2021-09-22 11:23
 */
@Service
public class MysqlTvService {

    @Autowired
    private MysqlTvMapper tvMapper;

    public List<Integer> isExist(List<Integer> tvids) {
        return tvMapper.isExist(tvids);
    }

    public void batchInsert(List<TvModel> insertMysqlList) {
        tvMapper.batchInsert(insertMysqlList);
    }

    public void batchUpdate(List<TvModel> updateMysqlList) {
        tvMapper.batchUpdate(updateMysqlList);
    }

    public void clearTvAwards() {
        tvMapper.clearTvAwards();
    }

    public void batchInsertTvAwards(List<WorksAwardModel> worksAwardModels) {
        tvMapper.batchInsertTvAwards(worksAwardModels);
    }

    public void batchInsertTvProcessData(List<TvProcessDataModel> list) {
        tvMapper.batchInsertTvProcessData(list);
    }

    public void batchInsertDeleteRecord(List<TvDeleteRecordModel> list) {
        tvMapper.batchInsertDeleteRecord(list);
    }

    public void clearDeleteRecord() {
        tvMapper.clearDeleteRecord();
    }

    public void deleteNoUseTv() {
        tvMapper.deleteNoUseTv();
    }
}
